export default {
	namespaced: true,
	state: {
		mycart: JSON.parse(uni.getStorageSync('mycart') || '[]'),
	},
	mutations: {
		setCart(state, data) {		
			uni.setStorageSync('mycart', JSON.stringify(data));
			state.mycart = data;
		},
		clearCart(state) {
			uni.removeStorageSync('mycart');
			state.mycart = [];
		}

	},
	actions: {

	}
}